package com.dragon.modules.yuegou.mapper.coupon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.coupon.CouponTemplateEntity;
import com.dragon.modules.yuegou.model.coupon.CouponTemplate;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 优惠券模板 Mapper接口
 *
 * @author pbuilder generated
 * @date 2020-06-29 19:18:21
 * @version 2.0
 */
@Component("coupCouponTemplateMapper")
public interface CouponTemplateMapper extends BaseMapper<CouponTemplateEntity> {

    /**
     * 查询注册送券的优惠券
     * @param busdId
     * @param title
     * @return
     */
    List<CouponTemplate> searchParkCoupon(@Param("busdId")String busdId, @Param("title")String title);

    List<CouponTemplate> searchList(@Param("busdId") String busdId, @Param("status") String status);

    List<CouponTemplate> searchShowList(@Param("busdId") String busdId, @Param("status") String status);

	/**
	 * @param id 模板Id
	 */
	void modifyViewModel (@Param("id") String id);
}
